package com.jrx.anytxn.param.transaction.config;

import com.jrx.anytxn.common.uitl.DateUtils;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;
import java.util.Map;

/**
 * 核心对账
 * @author zcc
 */
@Component
@ConfigurationProperties(prefix = "billcompare.detail")
public class BillCompareConfig {

    /**
     *  数据分库名称
     */
    private String dataFrom;

    /**
     *外部渠道号
     */
    private String thirdChannel;

    /**
     *  对账文件与TXN内部交易状态映射
     */
    private Map<String, String> transType;

    /**
     *  对账结果短信接收手机号
     */
    private String reciveMobile;

    /**
     * 指定对账日期
     */
    private String today;

    /**
     * 获取指定对账日期
     *
     * @return today
     */
    public Date getToday() {
        return DateUtils.parseDate(this.today, DateUtils.DATE_PATTERN_ANOTHER);
    }

    /**
     * 设置指定对账日期
     *
     * @param today
     */
    public void setToday(String today) {
        this.today = today;
    }
    public String getDataFrom() {
        return dataFrom;
    }

    public void setDataFrom(String dataFrom) {
        this.dataFrom = dataFrom;
    }

    public Map<String, String> getTransType() {
        return transType;
    }

    public void setTransType(Map<String, String> transType) {
        this.transType = transType;
    }

    public String getReciveMobile() {
        return reciveMobile;
    }

    public void setReciveMobile(String reciveMobile) {
        this.reciveMobile = reciveMobile;
    }

    public String getThirdChannel() {
        return thirdChannel;
    }

    public void setThirdChannel(String thirdChannel) {
        this.thirdChannel = thirdChannel;
    }
}